package com.example.demo2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Date;
import java.util.UUID;

@Controller
@RequestMapping("/chapter01")
public class IndexController {
    @RequestMapping( "/toIndex")
    public String toIndex(Model model) {
        model.addAttribute("message", "Hello,how are you doing?");
        return "index";
    }
}
